package com.chen.wxchat.service.impl;

import com.chen.wxchat.dao.FriendCircleDao;
import com.chen.wxchat.dao.NotifyDao;
import com.chen.wxchat.entity.FriendCircle;
import com.chen.wxchat.entity.Notify;
import com.chen.wxchat.service.FriendCircleService;
import com.chen.wxchat.service.NotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class FriendCircleServiceImpl implements FriendCircleService {

    @Autowired
    private FriendCircleDao circleDao;


    @Override
    public boolean addFriendCircle(FriendCircle circle) {
        return (circleDao.insertFriendCircle(circle)>0);
    }

    @Override
    public List<FriendCircle> getFriendCircleList(String userId) {
        return circleDao.getFriendCircleList(userId);
    }
}
